package com.d0312;

public class MyCalc {
    private int n1;
    private int n2;
    public MyCalc(){

    }
    public MyCalc(int n1,int n2){
        this.n1=n1;
        this.n2=n2;
    }
    public void addition(){
        System.out.println((n1+n2));
    }
    public void subtration(){
        System.out.println((n1-n2));
    }
    public void multiplication(){
        System.out.println((n1*n2));
    }
    public void division(){
        System.out.println((n1/n2));
    }

    public static void main(String[] args) {
        MyCalc myCalc=new MyCalc(12,6);
        myCalc.addition();
        myCalc.subtration();
        myCalc.multiplication();
        myCalc.division();
    }
}
